<template>
  <section class="button" v-if="applyLeavePlatform">
     <a class="leave-btn target-btn" href="#/mySend" target="_blank">发起休假</a>
  </section>
</template>

<script>
export default {
	data(){
		return{
			applyLeavePlatform : Number(localStorage.getItem('applyLeavePlatform'))
		}
	}
	
};
</script>

<style scoped lang='less'>
.button {
  text-align: center;
  padding-bottom: 20px;

  .leave-btn {
    background: #5fb3f9;
  }
  .target-btn {
    display: inline-block;
    margin-right: 1.5%;
    border-radius: 25px;
    color: #fff;
    padding: 0 15px;
    height: 26px;
    line-height: 26px;
  }
  .target-btn:hover {
    cursor: pointer;
  }
  .salary-btn {
    background: #5fb3f9;
  }
  .vacation-btn {
    background: #22ceb8;
  }
}
</style>
